package com.yijiaw.service;

import com.yijiaw.domain.Part;
import com.yijiaw.domain.Parttype;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Part entities
 * 
 */
public interface PartService {

	/**
	 * Delete an existing Part entity
	 * 
	 */
	public void deletePart(Part part);

	/**
	 * Load an existing Part entity
	 * 
	 */
	public Set<Part> loadParts();

	/**
	 * Save an existing Parttype entity
	 * 
	 */
	public Part savePartParttype(Integer id, Parttype related_parttype);

	/**
	 * Return a count of all Part entity
	 * 
	 */
	public Integer countParts();

	/**
	 * Save an existing Part entity
	 * 
	 */
	public void savePart(Part part_1);

	/**
	 * Delete an existing Parttype entity
	 * 
	 */
	public Part deletePartParttype(Integer part_id, Integer related_parttype_id);

	/**
	 */
	public Part findPartByPrimaryKey(Integer id_1);

	/**
	 * Return all Part entity
	 * 
	 */
	public List<Part> findAllParts(Integer startResult, Integer maxRows);
}